package com.xbongbong.workflow.pojo.changerecord;

import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;

/**
 * @author: 汪腾伟
 * @date: Created in 2022/9/15 14:13
 * @description：  子表单中列的基础内容封装
 */
@Getter
@Setter
public class ChangeRecordSubFormColumnPojo implements Serializable {

    private static final long serialVersionUID = -6316893021472065314L;

    private String attr;

    /**
     * @see com.xbongbong.paas.enums.FieldTypeEnum
     */
    private Integer fieldType;

    private ValuePojo value;

    private Integer operateTag;
    private Long addTime;
    public ChangeRecordSubFormColumnPojo() {
    }

    public ChangeRecordSubFormColumnPojo(String attr, Integer fieldType, ValuePojo value) {
        this.attr = attr;
        this.fieldType = fieldType;
        this.value = value;
    }

    public ChangeRecordSubFormColumnPojo(String attr, Integer fieldType, ValuePojo value, Long addTime) {
        this.attr = attr;
        this.fieldType = fieldType;
        this.value = value;
        this.addTime = addTime;
    }
}
